#include "plane.h"

Plane::Plane(void) {
    this->a = 0;
    this->b = 0;
    this->c = 0;
    this->d = 0;
}

Plane::~Plane(void) {
}

void Plane::Normalize() {
    float num2 = ((this->a * this->a) + (this->b * this->b)) + (this->c * this->c);
    if (fabs((float) (num2 - 1.0f)) >= 0.001f) {
        float num = 1.0f / ((float)sqrt((double) num2));
        this->a *= num;
        this->b *= num;
        this->c *= num;
        this->d *= num;
    }
}